package org.timemachine.tool;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

public class FieldHelper {
	
	public static boolean hasAnnotation(Field field, Class<? extends Annotation> aClass) {
		try {
			Annotation annotation = field.getAnnotation(aClass);
			if (annotation==null) {
				return false;
			}
		} catch (Exception e) {
			return false;
		}
		return true;
	}

}
